﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditUserInfo.ascx.cs" Inherits="Views_Users_EditUserInfo" %>
<script language="javascript" type="text/javascript">
	function historyBack() {
		if (confirm('确认要取消么？当前编辑的内容无法被保存。')) {
			window.history.back();
		}
	}

	function checkEnter(e) {
		var keynum;

		if (window.event)	// IE
		{
			keynum = e.keyCode;
		}
		else if (e.which)	// Netscape/Firefox/Opera
		{
			keynum = e.which;
		}

		if (keynum == 13)
			(document.getElementById("<%=btn_FinishEdit.ClientID %>")).focus();
	}
</script>
<div class="HomeRightTitle">
	<div class="RightTitleCH">
		<asp:Literal ID="lit_MainTitle" runat="server" Text="修改用户信息"></asp:Literal>
	</div>
	<div class="RightTitleEN">
		<asp:Literal ID="lit_SubTitle" runat="server" Text="Frontfree"></asp:Literal>
	</div>
</div>
<div id="DetailBodyRightMain" class="MinHeight_500">
	<table class="RegTable">
		<tr>
			<td>
			</td>
			<td class="Height_20">
				<asp:Label ID="lbl_ErrorMessage" runat="server" ForeColor="Red"></asp:Label>
			</td>
		</tr>
		<tr>
			<td class="TextAlign_R">
				<a>Email：</a>
			</td>
			<td class="TextAlign_L">
				<asp:label runat="server" ID="lbl_Email" Font-Size="14px"></asp:label>
			</td>
		</tr>
		<tr>
			<td>
			</td>
			<td>
			</td>
		</tr>
		<tr>
			<td class="TextAlign_R">
				<a>显示姓名：</a>
			</td>
			<td class="TextAlign_L">
				<asp:TextBox runat="server" ID="tb_ShowName" CssClass="RegTb" onKeyDown="checkEnter(event)"></asp:TextBox>
				<asp:RequiredFieldValidator ID="valr_ShowName" runat="server" ForeColor="red" ControlToValidate="tb_ShowName"
					ErrorMessage="(请输入电子邮箱)" Display="Dynamic" ValidationGroup="Registe"></asp:RequiredFieldValidator>
			</td>
		</tr>
		<tr>
			<td class="TextAlign_R">
				<a>密码：</a>
			</td>
			<td class="TextAlign_L">
				<asp:TextBox runat="server" ID="tb_Password" TextMode="Password" CssClass="RegTb" onKeyDown="checkEnter(event)"></asp:TextBox>
				<asp:RequiredFieldValidator ForeColor="red" runat="server" ID="valr_Password" ControlToValidate="tb_Password"
					ErrorMessage="(请填写密码)" Display="Dynamic" ValidationGroup="Registe"></asp:RequiredFieldValidator>
				<asp:RegularExpressionValidator ForeColor="red" runat="server" ID="valr_PassLength"
					ControlToValidate="tb_Password" ErrorMessage="(密码须在6-20位之间)" Display="Dynamic"
					ValidationExpression="\w{6,20}" ValidationGroup="Registe"></asp:RegularExpressionValidator>
			</td>
		</tr>
		<tr>
			<td class="TextAlign_R">
				<a>确认密码：</a>
			</td>
			<td class="TextAlign_L">
				<asp:TextBox runat="server" ID="tb_ConfirmPassword" TextMode="Password" CssClass="RegTb" onKeyDown="checkEnter(event)"></asp:TextBox>
				<asp:RequiredFieldValidator ForeColor="red" runat="server" ID="vlar_RePressEnpyt"
					ControlToValidate="tb_ConfirmPassword" ErrorMessage="(密码不一致)" Display="Dynamic" ValidationGroup="Registe"></asp:RequiredFieldValidator>
				<asp:CompareValidator ForeColor="red" runat="server" ID="valc_RePass" ControlToValidate="tb_ConfirmPassword"
					ErrorMessage="(密码不一致)" ControlToCompare="tb_Password" Display="Dynamic" ValidationGroup="Registe"></asp:CompareValidator>
			</td>
		</tr>
		<tr>
			<td>
			</td>
			<td>
				<div style="float: left; padding-top: 20px">
					<asp:Button runat="server" ID="btn_FinishEdit" Text="确定" CssClass="Btn_60" ValidationGroup="Registe" />
				</div>
				<div style="float: left; padding-left: 64px; padding-top: 20px">
					<input id="btn_Cancel" type="button" value="取消" onclick="historyBack();" class="Btn_60" />
				</div>
			</td>
		</tr>
	</table>
</div>
